package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.FreightInformationMapper;
import com.wntms.gps.pojo.FreightInformation;
import com.wntms.gps.service.IFreightInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 货运信息Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class FreightInformationServiceImpl implements IFreightInformationService
{
    @Autowired
    private FreightInformationMapper freightInformationMapper;

    /**
     * 查询货运信息
     * 
     * @param id 货运信息主键
     * @return 货运信息
     */
    @Override
    public FreightInformation selectFreightInformationById(Long id)
    {
        return freightInformationMapper.selectFreightInformationById(id);
    }

    /**
     * 查询货运信息列表
     * 
     * @param freightInformation 货运信息
     * @return 货运信息
     */
    @Override
    public List<FreightInformation> selectFreightInformationList(FreightInformation freightInformation)
    {
        return freightInformationMapper.selectFreightInformationList(freightInformation);
    }

    /**
     * 新增货运信息
     * 
     * @param freightInformation 货运信息
     * @return 结果
     */
    @Override
    public int insertFreightInformation(FreightInformation freightInformation)
    {
        return freightInformationMapper.insertFreightInformation(freightInformation);
    }

    /**
     * 修改货运信息
     * 
     * @param freightInformation 货运信息
     * @return 结果
     */
    @Override
    public int updateFreightInformation(FreightInformation freightInformation)
    {
        return freightInformationMapper.updateFreightInformation(freightInformation);
    }

    /**
     * 批量删除货运信息
     * 
     * @param ids 需要删除的货运信息主键
     * @return 结果
     */
    @Override
    public int deleteFreightInformationByIds(Long[] ids)
    {
        return freightInformationMapper.deleteFreightInformationByIds(ids);
    }

    /**
     * 删除货运信息信息
     * 
     * @param id 货运信息主键
     * @return 结果
     */
    @Override
    public int deleteFreightInformationById(Long id)
    {
        return freightInformationMapper.deleteFreightInformationById(id);
    }
}
